home *** CD-ROM | disk | FTP | other *** search
- CIATracker.lib Documentation
-
- Neil O'Rourke
-
- Version 1.1 (28/4/94)
-
-
- Introduction
- ~~~~~~~~~~~~
- The standard soundtracker replay routines supplied with Blitz Basic 2 have
- many faults, which this library attempts to overcome. Some of the features
- are:
-
- - Plays all ST/NT/PT songs that utilise either the VBLANK timing or the
- more recent CIA based timings
- - Plays back correctly on 50/60Hz systems, running either PAL or NTSC
- - Contains more specialised functions for advanced programmers
-
-
- The 1.1 upgrade
- ~~~~~~~~~~~~~~~
- Version 1.0 should not have been too widely distributed, as it was a "first
- out the door" rush job. If you have been using it, save all your source as
- Ascii, install the new library and reload. Note that many tokens have been
- deleted, and some have changed format. LoadTrackerModule now returns an
- error code, for example. Also, Free TrackerModule,TrackerModule# won't
- work anymore.
-
- I've changed the internal format of the library for several reasons, one of
- the most significant being that there just isn't enough information
- available on creating Blitz II objects. I could probably work it all out,
- but I'm vain enough to feel that I have better things to do with my time :)
-
- CIATrackerLib now handles all its modules internally, completly bypassing
- the Blitz II objects. While this doesn't mean squat to most people, it
- does mean that the usual commands like Free, Use etc don't work. This
- shouldn't cause too many problems. If it does, then let me know! I want
- to make this tracker library the best available in any language!
-
- Several bugs have been squashed, including some extreamly nasty memory
- access ones. Almost certainly new ones have been introduced.
-
- The library can supposedly handle upto 8 modules, but I don't have enough
- memory to try it out. Don't ask for modules greater then 8, however.
-
-
- Basic Commands
- ~~~~~~~~~~~~~~
-
- success=LoadTrackerModule(TrackerModule#,FileName$)
-
- Loads the named module into chip ram, ready for playing. This command can
- only be called in Amiga mode. success is a boolean return code (true or
- false). If the load fails for any reason, you can usually find out the DOS
- error code by calling IOErr_() immediatly after the load has failed.
-
- Note that there is an implicit call to FreeTrackerModule for whatever
- module you are trying to load.
-
-
- StartTracker TrackerModule#
-
- Starts to play the requested module
-
-
- StopTracker
-
- Stops the current module
-
-
- SetDMAWait value
-
- This sets the DMA Wait for your machine. On a standard 7.14MHz 68000 based
- machine, the default value is 300. However, faster machines can cause the
- replay routine to skip notes. On a 25MHz 68030 machine, the suggested
- value is 900. Set this as low as possible so that you still hear all the
- notes. A future upgrade *may* do this automatically, but I have no
- intention of implementing it at this stage.
-
-
- FreeTrackerModule TrackerModule#
-
- This frees a module loaded with LoadTrackerModule. You cannot free a
- module that has been set up with SetTrackerModule.
-
-
- SetTrackerModule TrackerModule#,ModuleAddress,ModuleLength
-
- This sets an arbitary area of memory as a tracker module, useful if you
- have BLoaded a file and want to hear if it is a module. Caution: a
- non-module may crash the Amiga. Caution: Do not attempt to free this
- module.
-
-
- GetTrackerSize(TrackerModule#) GetTrackerLocation (TrackerModule#)
-
- Both these functions return information about the module
-
-
- GetLoadTrackerModuleError GetModTable GetMT_Data
-
- These commands appeared in V1.0, but serve no useful purpose other than
- debugging. They have been deleted.
-
-
- Disclaimer:
- ~~~~~~~~~~~
- By installing this software on your system, you are agreeing that I have no
- liability as to the outcome of such use. If, for example, you use a
- command as documented but this command causes your monitor screen to arc
- out through to earth via you, and all that is left of you is a greasy,
- smoking slime on your chair, tough luck.
-